#include "messagebox.h"

#include <QApplication>
#include <QTranslator>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QString runPath = QCoreApplication::applicationDirPath();       //获取文件运行路径
        qDebug() << runPath;
    QTranslator *translator = new QTranslator();
       //translator->load(runPath+"/messagebox_zh.qm");
    translator->load(":/qm/messagebox_zh.qm");
       a.installTranslator(translator);

    GMessageBox w;
    w.show();
    return a.exec();
}
